/**
 * Created with CLion.
 * Description: 
 * User: loong
 * Date: 2020-05-01
 * Time: 14:52
 */
#ifndef GOFSTUDY_HANFEIZHI_H
#define GOFSTUDY_HANFEIZHI_H


#include "IHanFeiZhi.h"

class HanFeiZhi : public IHanFeiZhi{
private:
    bool isHavingBreakfast = false;
    bool isHavingFun = false;
public:
    void haveBreakFast() override {
        cout<<"韩非子：开始吃饭"<<endl;
        isHavingBreakfast = true;
    }

    void haveFun() override {
        cout<<"韩非子：开始娱乐"<<endl;
        isHavingFun  = true;
    }

    bool isHavingBreakfast1() const {
        return isHavingBreakfast;
    }

    void setIsHavingBreakfast(bool isHavingBreakfast) {
        HanFeiZhi::isHavingBreakfast = isHavingBreakfast;
    }

    bool isHavingFun1() const {
        return isHavingFun;
    }

    void setIsHavingFun(bool isHavingFun) {
        HanFeiZhi::isHavingFun = isHavingFun;
    }
};


#endif //GOFSTUDY_HANFEIZHI_H
